<template>
  <Demo @hello="handleHello" :msg="hello">
    <div>test1111111111</div>
  </Demo>
</template>

<script>
// https://www.bilibili.com/video/BV1Zy4y1K7SH?p=149&spm_id_from=pageDriver&vd_source=cd7c05823c8e4a5b7a5754b7ad8fe5de
import { reactive } from "vue";
import Demo from './components/Demo.vue'
export default {
  name: "App",
  components:{Demo},
  setup(){
    let hello=reactive('哈喽啊树哥!')
    let handleHello=(val)=>{
      alert(`你好,我收到了${val}`)
    }
    return {hello,handleHello}
  },
};
</script>

<style scoped>
</style>
